package com.kinyx.framework.db.vo;

import javax.persistence.Transient;

import org.junit.Assert;
import org.junit.Test;

public class MappingHandler_Tester_isColumn {

	public class Bean {

		// 标注@Transient的不可映射
		@Transient
		private String no;

		// 未标注@Transient的可映射
		@SuppressWarnings("unused")
		private String yes;

	}

	@Test
	public void test() throws NoSuchFieldException, SecurityException {
		Assert.assertFalse(MappingHandler.isColumn(Bean.class.getDeclaredField("no")));
		Assert.assertTrue(MappingHandler.isColumn(Bean.class.getDeclaredField("yes")));
	}

}
